export function formatPrice(price: number) {
  return "￥" + String(price.toFixed(2)).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

export function prefixInteger(num: number, length: number) {
  return (Array(length).join("0") + num).slice(-length);
}
